<?php

class Admin_Bootstrap extends Zend_Application_Module_Bootstrap {

    protected function _initAppAutoload() {
        $autoloader = new Zend_Application_Module_Autoloader(array(
                    'namespace' => 'admin',
                    'basePath' => APPLICATION_PATH . '/modules/admin',
                ));

        return $autoloader;
    }

    protected function _initNavigation() {
        $config = new Zend_Config_Xml(APPLICATION_PATH . '/configs/navegacionAdmin.xml', 'nav');

        try {
            $navigation = new Zend_Navigation($config);
            Zend_Layout::getMvcInstance()->getView()->navigation($navigation);
        } catch (Zend_Navigation_Exception $e) {
            echo $e->getMessage();
        }
    }

}